package info.techgeek.labs.java5Features.autoBoxing;

import java.util.Map;
import java.util.TreeMap;

public class AutoBoxing {
	
	public static void main(String[] args) {
	      Map<String,Integer> m = new TreeMap<String, Integer>();
	      Integer te = 2;
	      int t ;
	      for (String word : args) {
	    	  
	          Integer freq = m.get(word);
	          t = te;
	          System.out.println(t);
	          m.put(word, (freq == null ? 1 : freq + 1));
	      }
	      System.out.println(m);
	   }
}
